﻿using System.Runtime.Serialization;

namespace Dapper.Core
{
    /// <summary>
    /// 分页实体
    /// </summary>
    public class PageParam
    {
        #region 属性变量

        /// <summary>
        /// 获取或设置当前页码
        /// </summary>
        [DataMember]
        public int PageIndex { get; set; }

        /// <summary>
        /// 获取或设置每页显示的记录
        /// </summary>
        [DataMember]
        public int PageSize { get; set; }

        /// <summary>
        /// 获取或设置记录总数
        /// </summary>
        [DataMember]
        public int RecordCount { get; set; }

       

        /// <summary>
        /// 排序方式 默认asc 
        /// </summary>
        [DataMember]
        public bool IsDesc
        {
            get; set;
        }

        /// <summary>
        /// 排序字段
        /// </summary>
        [DataMember]
        public string Sort
        {
            get; set;
        }
        #endregion
    }
}
